<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('blog_authors', function (Blueprint $table) {
            $table->id()->comment('编号');
            $table->string('avatar')->comment('头像');
            $table->string('name', 50)->comment('姓名');
            $table->string('gender')->default('未知')
                ->comment('姓名:0=未知,1=男,2=女');
            $table->date('birthday')->comment('生日');
            $table->string('information')->nullable()->comment('信息');
            $table->timestamps();
            $table->softDeletes();
            $table->comment('【博客】作者表');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('blog_authors');
    }
};
